<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="js/jquery-3.3.1.min.js"></script>

    <script>
        $(function () {
            $("#add").click(function () {
                $.post("account/add.do", {"name": "abb", "money": 999988}, function (data) {
                    $("#msg_div").html(data.msg);
                }, "json");
            });
        });
        $(function () {
            $("#del").click(function () {
                $.post("account/del.do",{"id":"18"}, function (data) {
                    $("#msg_div").html(data.msg);
                }, "json");
            });
        });
        $(function () {
            $("#update").click(function () {
                $.post("account/update.do",{"id":7,"name":"abb","money":50000}, function (data) {
                    $("#msg_div").html(data.msg);
                }, "json");
            });
        });
    </script>



</head>
<body>

<div id="msg_div"></div>

<button id="add">新增一个Account</button>
<button id="del">删除一个Account</button>
<button id="update">修改一个Account</button>
<button id="select">查找一个</button>
<button id="selectAll">查找全部</button>


</body>
</html>